             package com.java.diagnostics.visualizer.recommender.balanced;
             
             import com.java.diagnostics.visualizer.data.AggregateData;
             import com.java.diagnostics.visualizer.data.DataPoint;
             import com.java.diagnostics.visualizer.data.TupleData;
             import com.java.diagnostics.visualizer.recommender.Recommendation;
             import com.java.diagnostics.visualizer.recommender.RecommendationBase;
             import com.java.diagnostics.visualizer.recommender.util.RecommendationLabels;
             
             public class LookForJavaHeapExhaustion
               extends RecommendationBase
               implements Recommendation
             {
               public void recommend(AggregateData data)
               {
                 TupleData afSuccess = data.getTupleData("VGCLabels.af.success");
                 
                 if ((afSuccess != null) && (!afSuccess.isEmpty())) {
                   DataPoint[] successPoints = afSuccess.getDataPoints();
                   
                   for (DataPoint success : successPoints)
                   {
                     if (success.getRawY() == 0.0D) {
                       addProblem(data, RecommendationLabels.JAVA_HEAP_EXHAUSTED);
                       suggestHeapSizes(data);
                       return;
                     }
                   }
                 }
               }
             }


